import Mock from 'mockjs';

let item = [{
		key: "/dztkjl/all",
		method: "get",
		param: {
			
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA|1-4': [{
					"tqjlid":"@natural",
					"dname": "@cname",
					"zt": [
						"R",
						"F"
					],
					"jlid": "number",
					"sjje":1000,
					"ct": "@datetime"
				}]
			});
		}
	},
	{
		key: "/dztkjl/page",
		method: "get",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|12": [{
						"tqjlid": "@natural",
						"dname": "@cname",
						"cover" : "https://bpic.588ku.com/element_origin_min_pic/23/04/23/d38c7a5f1ec28a85754de1e4f23b66e1.jpg",
						"sjje": 1000,
						"jlid": "number",
						"zt|1": [
							"R",
							"F"
						],
						"ct": "@datetime"	
					}]
				}
			});
		}
	},
	{
		key: "/dztkjl/info",
		method: "get",
		prarm: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages':6,
					'total': 55,
						"tqjlid" : '@natural',
						"dzid" : '@natural',
						"openid" : '@natural',
						"dname" : "@cname",
						"amount" : 1200,
						"sjje" : 1000,
						"ccbl" : 0.1,
						"ct": "@datetime",
						"zt|1": [
							"R",
							"F"
						],
						"amount" : 10000,
						"roomyyjl|12":[
							{
								"rmorderid" : "@Integer(1001,1100)",
								"jlname" : "@cname",
								"amount" : 500,
								"roomid" : '1001',
								"rname" : "房间1",
								"ct": "@datetime"
							},
						]
					}
				
			})
		}
	},

	{
		key: "/dztkjl/info",
		method: "post",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/dztkjl/info",
		method: "put",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/dztkjl/info",
		method: "delete",
		param: {
			empId: '',
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},

]
export default item;